from Tools.tools import log,sadf
import pytest,os
if __name__ == '__main__':
    log()
    pytest.main(['-s',r'C:\Users\Administrator\PycharmProjects\99yk\Case\test_buy.py','--alluredir=log'])
    os.system('allure generate log -o html --clean')
    sadf([r'C:\Users\Administrator\PycharmProjects\99yk\html\index.html',r'C:\Users\Administrator\PycharmProjects\99yk\log.txt'])